package com.sgb.kjwl.view.ui.adapter.self;

import android.content.Context;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class CompanyTypeAdapter extends BaseRecycleAdapter<String> {

    private TextView company_type_tv;

    public CompanyTypeAdapter(Context context, List<String> datas) {
        super(context, R.layout.item_company_type, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final String entity) {
        holder.setBinding(BR.viewModel, entity);
        company_type_tv = holder.getItem().findViewById(R.id.company_type_tv);
        company_type_tv.setText(entity);
    }

}
